package cn.iocoder.springboot.lab03.kafkademo;

import cn.iocoder.springboot.lab03.kafkademo.service.interfaceService.SpiService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.ServiceLoader;

@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        ServiceLoader<SpiService> services = ServiceLoader.load(SpiService.class);
        services.forEach(SpiService::printSpiService);
        SpringApplication.run(Application.class, args);
    }
}
